﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SourceControlEssentials
{
    public class Silin: IStudent
    {
        public override int GetHashCode()
        {
            return 17;
        }

        public int Id()
        {
            return this.GetHashCode();
        }

        public string GetLastName()
        {
            return "Silin";
        }

        public string GetFirstName()
        {
            return "Artem";
        }

        public int GetGroup()
        {
            throw new NotImplementedException();
        }

        public string MethodName()
        {
            return "Is a palindrome?";
        }

        public string ExecuteStrategy(string value)
        {
            //find palindrome
            bool result = value.SequenceEqual(value.Reverse());
            return result.ToString();
        }
    }
}
